//
//  FileManager.h
//  Router
//
//  Created by teki on 15/10/22.
//  Copyright © 2015年 dc. All rights reserved.
//

#import <UIKit/UIKit.h>

/// 文件管理类
@interface FileManager : NSObject

/// 获取Document目录
+ (NSString *)getDocumentsPath;
/// 获取Library目录
+ (NSString *)getLibraryPath;
/// 获取cache 目录
+ (NSString *)getCachePath;
/// 获取临时文件夹目录
+ (NSString *)getTemporaryPath;

/// 在Documents 目录下创建目录
+ (BOOL)createDirectoryWithDirectoryName:(NSString *)dircetoryName;
/// 返回在Documents 目录下指定目录路径
+ (NSString *)directoryPathWithDirectoryName:(NSString *)dircetoryName;
/// 在Documents 目录下创建文件
+ (BOOL)createFileWithFileName:(NSString *)fileName;
/// 返回Documents目录下指定文件路径
+ (NSString *)filePathWithFileName:(NSString *)fileName;
/// 判断指定路径文件是否存在
+ (BOOL)isExistAtPath:(NSString *)filePath;

/// 计算文件大小
+ (unsigned long long)fileSizeAtPath:(NSString *)filePath;
/// 计算文件夹中所有文件的大小
+ (unsigned long long)folderSizeAtPath:(NSString*)folderPath;

/// 删除指定路径的文件
+(BOOL)deleteFileWithFilePath:(NSString *)filePath;


+ (NSArray *)getFilelistFromDocument;


+ (void)removeDocumentWithFileNamePrefix:(NSString *)fileNamePrefix;

@end
